package cn.dodgeball.java;

import cn.dodgeball.util.Const;

import javax.swing.*;
import java.awt.*;

public class BackGround extends JPanel {
    public BackGround(){
        setSize(Const.FRAME_WIDTH,Const.FRAME_HEIGHT);
        JLabel label = new JLabel(new ImageIcon("src/cn/dodgeball/resources/img/background.jpg"));
        add(label);
        setVisible(true);
    }
}
